package bjut.core.event;

import bjut.core.context.ApplicationContext;

/**
 * @Author: zhuzhiming
 * @Date: 2022/6/15 22:46
 */
public class ApplicationContextEvent extends ApplicationEvent{
    /**
     * Constructs a prototypical Event.
     *
     * @param source the object on which the Event initially occurred
     * @throws IllegalArgumentException if source is null
     */
    public ApplicationContextEvent(Object source) {
        super(source);
    }

    public final ApplicationContext getApplicationContext(){
        return (ApplicationContext) getSource();
    }

}
